package com.moli.iov.manager.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.moli.iov.manager.model.po.AuthorityAuth;
import com.moli.iov.manager.model.po.AuthorityRole;
import com.moli.iov.manager.model.po.AuthorityRoleAuth;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色菜单中间表 服务类
 * </p>
 *
 * @author fudaohui
 * @since 2018-12-12
 */
public interface IAuthorityRoleAuthService extends IService<AuthorityRoleAuth> {

    /***
     * 新增或修改AuthorityRoleAuth
     * @param authorityRoleAuths 权限属性对应的集合
     * @return
     */
    boolean saveOrUpdateAuthorityRoleAuths(List<AuthorityRoleAuth> authorityRoleAuths);

    /**
     * 根据roleId查询关联的权限列表数据
     *
     * @param roleId
     * @return
     */
    List<Long> queryAuthIdsByRoleId(long roleId, int selectStatus);


    int deleteAuthorityRoleBatchByroleds(@Param("roleId") Long roleId);



}
